home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / src / fig11_23.jar / Ch11 / Fig11_23 / Fig11_23.cpp
C/C++ Source or Header  |  1997-10-29  |  285b  |  15 lines

  1. // Fig. 11.23: fig11_23.cpp 
  2. // Printing an integer with internal spacing and
  3. // forcing the plus sign.
  4. #include <iostream.h>
  5. #include <iomanip.h>
  6.  
  7. int main()
  8. {
  9.    cout << setiosflags( ios::internal | ios::showpos )
  10.         << setw( 10 ) << 123 << endl;
  11.    return 0;
  12. }
  13.  
  14.  
  15.